#include <stdio.h>
#include <stdlib.h>

typedef struct node
{
    int data;
    struct node* next;
}LNode;

void SListPushhead(LNode** phead,int x)
{
    LNode* newnode=(LNode*)malloc(sizeof(LNode));
    newnode->data=x;
    newnode->next=*phead;
    *phead=newnode;
}
int main()
{
    int n,y;
    while(scanf("%d %d",&n,&y)!=EOF)
    {
        LNode* plist=NULL;
        for(int i=0;i<n;i++)
        {
            int x;
            scanf("%d",&x);
            SListPushhead(&plist,x);
        }
        LNode* cur=plist;
        int s=0;
        while(cur!=NULL)
        {
            if(cur->data==y)
            {
                s++;
            }
            cur=cur->next;
        }
        if(s)
        printf("%d\n",s);
        else
            printf("no\n");
    }
    return 0;
}
